/***********************************************************************
 * Module:  JOperateFileResult.h
 * Author:  johnneyshi
 * Modified: 2012��12��14�� 17:13:13
 * Purpose: Declaration of the class JOperateFileResult
 ***********************************************************************/

#if !defined(__ClassDiagram_JOperateFileResult_h)
#define __ClassDiagram_JOperateFileResult_h
#include <list>
#include <string>
#include "JWorkingCopiesBaseFile.h"

class JOperateFileResult 
{
public:
    void Append(JOperateFileResult& _result) 
    {
        this->errorMsg.append(_result.errorMsg);
        this->workingCopies.insert(this->workingCopies.end(), _result.workingCopies.begin(), _result.workingCopies.end());
        this->originalNotInWorkingCopies.insert(this->originalNotInWorkingCopies.end(), _result.originalNotInWorkingCopies.begin(), _result.originalNotInWorkingCopies.end());
    }
    std::string errorMsg;
    std::list<JWorkingCopiesBaseFile*> workingCopies;
    //In delete file from working copies. If original file is not in working copies, so when it is deleted, working copies don't need store the file.
    std::list<JWorkingCopiesBaseFile> originalNotInWorkingCopies;
    //	JOperateFileResult& operator += ( JOperateFileResult& _result);

protected:
private:

};


#endif